[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread hf
out yet. >> >> Here it is my text: >> >> ``` >> >> setuplist[height=0] >> >> \startitemize[n] >> >> \item It's impossible --- don't waste my time. >> >> \item It's possible, but not worth doing. >> >> \item I said it was

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread Henning Hraban Ramm
Am 25.04.24 um 10:46 schrieb h...@hongfeng.ch: thank you. just tried, not worked out yet. Here it is my text: ``` setuplist[height=0] \startitemize[n] \item It's impossible --- don't waste my time. \item It's possible, but not worth doing. \item I said it was a good ideal all along

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread hf
thank you. just tried, not worked out yet. Here it is my text: ``` setuplist[height=0] \startitemize[n] \item It's impossible --- don't waste my time. \item It's possible, but not worth doing. \item I said it was a good ideal all along. \stopitemize ``` Now the distance between the items

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread Henning Hraban Ramm
Am 25.04.24 um 10:20 schrieb h...@hongfeng.ch: which parameter in `\setuplist` is used for adjusting the distance between the items of a list? Usually it’s the general line height. You can use "inbetween=\blank[3pt]" to insert extra space. (Unteste

[NTG-context] which parameter is for adjust the distance between items in a list?

2024-04-25 Thread hf
which parameter in `\setuplist` is used for adjusting the distance between the items of a list? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm
Am 23.04.24 um 23:14 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 23.04.2024 um 21:43: Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm
Am 24.04.24 um 01:00 schrieb Bruce Horrocks: In the source there is a comment relating to location: %D Regular list entries are bound to a specific location in order to get the right %D pagenumber etc.\ associated. When pushing something inbetween (in mkiv) it ends %D up directtly in the

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Bruce Horrocks
> On 23 Apr 2024, at 20:43, Henning Hraban Ramm wrote: > > Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: >> I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I >> don’t understand all parameters. >> Can anyone explain these please: &g

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 23.04.2024 um 21:43: Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Henning Hraban Ramm
Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
Am 22.04.24 um 18:30 schrieb Duncan Hothersall: Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Duncan Hothersall
... A section .. A subject Duncan On Mon, 22 Apr 2024 at 17:09, Henning Hraban Ramm wrote: > I tried to complete https://wiki.contextgarden.net/Command/setuplist, > but I don’t understand all parameters. > > Can anyone explain these please: > > * state (start stop): what doe

[NTG-context] documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name): language dependent labels? as a prefix or what

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
[alanindex]\relax}% \thinspace --\thinspace \pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter[alanindex]\relax}} \setuplist[chapter][pagecommand=\ChapterListPage] \setuplist[chapter][pagecommand=\ChapterListPage] \showgrid \starttext \completecontent \startchapter [title=Knuth

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
...) If it helps: I currently have \startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName, itemTitle=ShortTitle,...] \setuplist[FMTitle][state=start, alternative=startendfmpages, criterium=all,] (\Reference is defined at the in the preamble to input of the file/component

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
[SourceTitle][page=yes, footer={ItemData}] \definehead[StudyTitle][chapter] \setuphead[StudyTitle][page=yes, footer={ItemData}] \definetext[ItemData][footer][ {\at[\Reference]– \at[\namedstructureuservariable{}{authorInitials}endPage]} ] \setuplist[SourceTitle][ state=start, textcolor=black

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-10 Thread Jim
at 21:38 (+0200), Lutz Haseloff wrote: > Hi Jim, > perhaps does this work for you? > ---- > \setuplist[chapter][headnumber=no] > \setuphead[chapter][number=no] > \starttext > \completecontent > \page > \chapter{Chapter one} > \input knuth > \chapter{Chapt

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Lutz Haseloff
Hi Jim, perhaps does this work for you? \setuplist[chapter][headnumber=no] \setuphead[chapter][number=no] \starttext \completecontent \page \chapter{Chapter one} \input knuth \chapter{Chapter two} \input ward \stoptext Greetings Lutz Am 9. September 2023 20:11:55 MESZ schrieb

[NTG-context] Adjust width of section part of table of contents

2023-09-04 Thread Jeroen
The following is a setuplist for the table of contents. Is there a way to have the section part only go to 80% of the page width, similar to width=0.8\textwidth \setuplist [chapter] [style={\bf}] \setuplist [section] [style={\tfx}] \setuplist [chapter,section] [headnumber

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Wolfgang Schuster
* (which include some dummy content) examples. The example below results in section entries which are listed as a paragraph, what output do you expect here. \setuplist[chapter][alternative=c] \setuplist[section][alternative=d] \starttext \completecontent \dorecurse{2}   {\chapter{Chapter #1

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
of it compiles (for me) in LMTX. So I tried something different, e.g. \definelist[chapter] \setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank] \definelist[section] \setuplist[section] [textcommand=\setups{SecToc}] \setupcombinedlist [content]o [list={chapter

Re: [NTG-context] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
>> >\startfrontmatter >> > >> > \setuppagenumbering >> > [location=] >> > >> > \definefont >> >[ChapterTextStyle] >> >[SansBold*default sa 2.2] >> > >> > \setuphead >>

Re: [NTG-context] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
gt; > [location=] > > > > \definefont > >[ChapterTextStyle] > >[SansBold*default sa 2.2] > > > > \setuphead > >[title] > >[style=ChapterTextStyle, > > align=flushright] > > >

Re: [NTG-context] Table of contents not appearing.

2023-04-20 Thread Hans Hagen via ntg-context
]       [style=ChapterTextStyle,        align=flushright]     \setuplist        [chapter]        [style=bold,         alternative=b,         width=1em]     \setuplist        [section]        [margin=1em,         width=1.75em]     \setuplist        [subsection]        [margin=2.75em

[NTG-context] Table of contents not appearing.

2023-04-20 Thread Fabrice Couvreur via ntg-context
] [SansBold*default sa 2.2] \setuphead [title] [style=ChapterTextStyle, align=flushright] \setuplist [chapter] [style=bold, alternative=b, width=1em] \setuplist [section] [margin=1em, width=1.75em

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-31 Thread Willi Egger via ntg-context
Thank you Alan, I tried many different things but as Wolfgang pointed out I had a mistake in the float definition! Kind regards WIlli > On 31 Mar 2023, at 00:08, Alan Braslau via ntg-context > wrote: > > Have you tried: > > \setuplist [f

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Alan Braslau via ntg-context
Have you tried: \setuplist [figure] [partnumber=no] ... \placelistoffigures [criterium=part] Alan On Thu, 30 Mar 2023 17:09:15 +0200 Willi Egger via ntg-context wrote: > Hello everybody, > > > I am still working on the previously mentioned project, consisting > out of

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Willi Egger via ntg-context
it one has to >>> choose the level to which it should be inserted: >>> \writetolist[chapter]{1.}{Chapter list entry A}, >>> \writetolist[section]{1.1}{Section list entry A}, etc.” >>> >>> https://wiki.contextgarden.net/Command/writetolist >&g

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Hans Hagen via ntg-context
[section]{1.1}{Section list entry A}, etc.” https://wiki.contextgarden.net/Command/writetolist So maybe you need a dot? Otherwise I don’t know. \definehead[xsubject][section][number=no] \setuplist[xsubject][margin=2em] \starttext \starttitle[title=Contents] \placelist[chapter,xsubject

[NTG-context] How to prefix the list of figures with part number?

2023-03-25 Thread Willi Egger via ntg-context
Willi \setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix? \setuphead[part][placehead=yes] \starttext \startpart[title=part one] \starttitle[title=Contents] \placelist[part,chapter][criterium=all] \startsubject[title=Figures] \placelistoffigures[criterium=all

Re: [NTG-context] alternative en TOC

2022-10-06 Thread Horacio Suárez via ntg-context
Its worring now. I have to add \setuplist[subsection][alternative=d] after \setupcombinedlist[content] etc. before that line it has no effect here. \definecombinedlist[content][part,chapter,section,subsection] \setupcombinedlist[content][alternative=c,partnumber=no,placehead=yes,color=black

Re: [NTG-context] alternative en TOC

2022-10-06 Thread Henning Hraban Ramm via ntg-context
Am 06.10.22 um 15:24 schrieb Horacio Suárez via ntg-context: Not working, besides "[alternative=d]" apears on top of the first pdf page. This works for me: \setuppapersize[A7,landscape] \setuplist[alternative=c] \setuplist[subsection][alternative=d] \starttext \placecontent

Re: [NTG-context] alternative en TOC

2022-10-06 Thread Horacio Suárez via ntg-context
t; subsections as "alternative=d" in the same TOC? Did you try \setuplist[subsection][alternative=d] ? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] alternative en TOC

2022-10-06 Thread Henning Hraban Ramm via ntg-context
Am 06.10.22 um 13:37 schrieb Horacio Suárez via ntg-context: hello it is possible to list chapters and section as "alternative=c" and subsections as "alternative=d" in the same TOC? Did you try \setuplist[subsection][alte

Re: [NTG-context] setupregister with realpage?

2022-09-23 Thread Benjamin Buchmuller via ntg-context
en wrote: > > On 9/23/2022 11:08 PM, Benjamin Buchmuller via ntg-context wrote: >> Dear list, >> \setuplist has the convenient option [pagenumber=realpage] >> \setupregister has not (yet). >> How can I get the realpagenumber instead of the userpagenumber for the &g

Re: [NTG-context] setupregister with realpage?

2022-09-23 Thread Hans Hagen via ntg-context
On 9/23/2022 11:08 PM, Benjamin Buchmuller via ntg-context wrote: Dear list, \setuplist has the convenient option [pagenumber=realpage] \setupregister has not (yet). How can I get the realpagenumber instead of the userpagenumber for the register indices? I tried \def\MyPageCommand#1

[NTG-context] setupregister with realpage?

2022-09-23 Thread Benjamin Buchmuller via ntg-context
Dear list, \setuplist has the convenient option [pagenumber=realpage] \setupregister has not (yet). How can I get the realpagenumber instead of the userpagenumber for the register indices? I tried \def\MyPageCommand#1{\realpagenumber} \setupregister[MyIndex][pagecommand=\MyPageCommand

Re: [NTG-context] \setuplist only for bodypart

2022-06-18 Thread Pablo Rodriguez via ntg-context
On 6/17/22 18:33, Wolfgang Schuster via ntg-context wrote: > [...] > To create separate styles for chapters within the frontmatter and > bodymatter you have to create a new section command where you can apply > different list settings. Many thanks for your reply, Wolfgang. Now I have learnt that

Re: [NTG-context] \setuplist only for bodypart

2022-06-17 Thread Wolfgang Schuster via ntg-context
according to documentation. Many thanks for your reply, Hraban. Using current latest (from 2022.05.11 11:36) with current sample outputs no different setup for chapters from bodypart: \startsectionblockenvironment[bodypart] \setuplist[chapter] [alternative=d

Re: [NTG-context] \setuplist only for bodypart

2022-06-17 Thread Pablo Rodriguez via ntg-context
n. Many thanks for your reply, Hraban. Using current latest (from 2022.05.11 11:36) with current sample outputs no different setup for chapters from bodypart: \startsectionblockenvironment[bodypart] \setuplist[chapter] [alternative=d] \stopsectionblockenvironment

Re: [NTG-context] \setuplist only for bodypart

2022-06-16 Thread Henning Hraban Ramm via ntg-context
Am 16.06.22 um 21:19 schrieb Pablo Rodriguez via ntg-context: \startsectionblockenvironment[bodypart] ... \stopsectionblockenvironment This should work according to documentation. Hraban ___ If your

[NTG-context] \setuplist only for bodypart

2022-06-16 Thread Pablo Rodriguez via ntg-context
Dear list, sorry for the very basic question, but I cannot find the way to do it. Imagine I have the following command: \setuplist [chapter] [alternative=d] But I only want for sectionblock bodypart (nof for frontpart, backpart or the appendices). I have enclosed

Re: [NTG-context] Calling in chapter number in list={}

2022-03-17 Thread Henning Hraban Ramm via ntg-context
\currentlistentrytitle = Überschrift des aktuellen Listeneintrags \currentlistentrypagenumber = Seitenzahl des aktuellen Listeneintrags (in German, because I copied it from my book) If you use \setuplist[command=...], you should set alternative=interactive, otherwise you don’t get bookmarks and links. \define[3

[NTG-context] Calling in chapter number in list={}

2022-03-16 Thread jbf via ntg-context
]\SectionTocEntry{% \leftaligned{#1}\par% title. \leftaligned is needed \hskip1cm\relax\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}% } \setuphead[chapter] of course includes number=no. \setuplist[chapter] is currently set as: [label=yes,distance=1.2cm,style=normal

[NTG-context] placelist created by defineenumeration fails in numbered headings

2022-01-20 Thread Youssef Cherem via ntg-context
] \defineenumeration [Título] [alternative=left, headcolor=darkcyan, width=2cm, text={Título}, before=\blank, after=\blank, between=\blank] \setuplabeltext[Exercise=Exercício~,Título=Título~] \setuplist[Exercício][width=6em] \starttext \title{defineenumeration} \subject{Lista de exercícios

Re: [NTG-context] Custom Table of Contents

2022-01-20 Thread Hans Hagen via ntg-context
Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -\definelistalternative [whatever] [renderingsetup=whatever] \setuplis

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
ry file (context --purge) because the > old (non existing) command is otherwise used in the next run which > results then in an error message. > > \setuplist >[section] >[textcommand=\SectionTocEntry, > after=\blank] > > \define[1]\SectionTocEntry >

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Wolfgang Schuster via ntg-context
iliary file (context --purge) because the old (non existing) command is otherwise used in the next run which results then in an error message. \setuplist [section] [textcommand=\SectionTocEntry, after=\blank] \define[1]\SectionTocEntry {\doifsomething{\rawstructurelis

[NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
note name I choose other than "thanks" does not work, and I have no clue why. Am I missing something, or is there a more elegant way to implement this? As an aside, I'd rather have the footnotes below the "thanks" notes. Is there any option that does this? \setuplist[se

Re: [NTG-context] Table of Contents Header?

2021-12-30 Thread kauśika via ntg-context
TOCpar] [3] [width=\dimexpr\TOCPageLabelWidth, align=middle] Finally, wrap it all up in the macro \define[3]\TOCEntry{% \startTOC #1 \TOCpar #2 \TOCpar #3% \stopTOC% } and indicate the command to use in the setup \setuplist [c

[NTG-context] \thanks inside author in section

2021-12-29 Thread Youssef Cherem via ntg-context
that bugs me is that any note name I choose other than "thanks" does not work, and I have no clue why. Am I missing something, or is there a more elegant way to implement this? As an aside, I'd rather have the footnotes below the "thanks" notes. Is there any option tha

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
, appendixlabel=, sectionconversionset=part, page=yes, header=empty, footer=empty, placehead=yes] \definelist[parttext] \setuplist[parttext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1]\PartAbstract{\writetolist[parttext]{}{\start\itx#1\stop}} %%% %%% chapter is managed here

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-25 Thread Bruce Horrocks via ntg-context
tartsetups chapter:before \page[left] %noheaderandfooterlines %% \setupheader[state=empty] %% \setupfootertexts [] [pagenumber] [pagenumber] [] %% \startalignment[left,nothyphenated] \startnarrower[4*left] \em \getbuffer[chapter:quote] \stopnarrower \stopalignment

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Gerben Wierda via ntg-context
lignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] > \page[right] > \blank[force,2*big] > \stopsetups > > \startsetups chapter:after >

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \blank[force,2*big] \stopsetups \startsetups chapter:after \blank[3*big] \stopsetups \definelist[chaptertext] \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
\page[right] > %\noheaderandfooterlines % I want the enumber in the footer here > \blank[force,2*big] > \stopsetups > > \startsetups chapter:after > \blank[3*big] > \stopsetups > > \definelist[chaptertext] > \setuplist[chaptertext][margin=1.3em,pagecommand=\gob

[NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
] \stopsetups \definelist[chaptertext] \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} \starttext \startbuffer [chapter:quote] If you think good architecture is expensive, try bad architecture\crlf {\tf Brian

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
hat I use. You want Roman numerals so maybe adapt it > to: > %% \define[2]\placePartTitle{\midaligned{\convertnumber[Romannumerals][#1] > #2}} > > \definehead [Part] [part] > \setuphead[Part] > [ page=right, >placehead=yes, >style={\stylePartTitle}, %% this is just fro

Re: [NTG-context] A book with sections

2021-10-23 Thread Bruce Horrocks via ntg-context
ad=yes, style={\stylePartTitle}, %% this is just from a \definefont before={\setups{PartSetup}}, command=\placePartTitle, ] With \setuplayout[location=doublesided] this then comes out on the RHS. For the ToC, I use: \setuplist [alternative=b] \setuplist [Part] [ headnumber=no, margin=0cm

Re: [NTG-context] Compilation error with the new version of lmtx

2021-10-17 Thread Hans Hagen via ntg-context
       [location=]     \definefont       [ChapterTextStyle]       [SansBold*default sa 2.2]     \setuphead       [title]       [style=ChapterTextStyle,        align=flushright]     \setuplist        [chapter]        [style=bold,         alternative=b,         width=1em]     \setuplist

[NTG-context] Compilation error with the new version of lmtx

2021-10-16 Thread Fabrice Couvreur via ntg-context
sa 2.2] \setuphead [title] [style=ChapterTextStyle, align=flushright] \setuplist [chapter] [style=bold, alternative=b, width=1em] \setuplist [section] [margin=1em, width=1.75em] \setuplist [subsection

Re: [NTG-context] Roman PDF labels

2021-09-14 Thread Wolfgang Schuster via ntg-context
the footer) to roman numbers? Hi Sylvain, copied from https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pagecon

Re: [NTG-context] Roman PDF labels

2021-09-14 Thread Pablo Rodriguez via ntg-context
lvain, copied from https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startsectionb

Re: [NTG-context] TOC labeltext and no partlabel

2021-08-25 Thread Adam Reviczky via ntg-context
h LMTX and > MKIV). > > The easy way is to create a new heading for the appendices (e.g. > \extrachapter) and set the label you want to use in the list. > > \setuplist [chapter] [label=chapter] > \setuplist [extrachapter] [label=appendix] > > >

Re: [NTG-context] TOC labeltext and no partlabel

2021-08-25 Thread Wolfgang Schuster via ntg-context
want to use in the list. \setuplist [chapter] [label=chapter] \setuplist [extrachapter] [label=appendix] A complexer solution where you can keep \chapter in the appendices can be achieved with a customized number type and the use of the processor mechanism to set

[NTG-context] TOC labeltext and no partlabel

2021-08-24 Thread Adam Reviczky via ntg-context
Appendix A Appendix 1 Bodypart A Appendix --- Based on Wolfgang's example, I am trying this MWE: \setuplabeltext[en][chapter=Chapter~] \setuplabeltext[en][appendix=Appendix~] \setuplist[chapter][label=yes,width=fit,stopper=~] \setuphead[chapter][bodypartlabel=,appendixlabel=] \starttext

Re: [NTG-context] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context
={Lecture }] \setupcombinedlist [content] [list={lecture}] \define[3]\LectureListCommand {\labeltext{lecture}#1\doiftext{#2}{: #2}\filler[dotfill]#3\par} \setuplist [lecture] [alternative=command, command=\LectureListCommand] \startsetups [footer:left] \labeltext{lecture} \getmarking

[NTG-context] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
userdata.format_lecture_title(args) if args.title and args.title ~= '' then context('%s %s: %s', args.label, args.number, args.title) else context('%s %s', args.label, args.number) end end \stopluacode \setupcombinedlist [content] [list={lecture}] \setuplist [lecture

Re: [NTG-context] Adjustment in the table of contents

2021-08-16 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24: Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection.  \setuplist    [chapter,section,subsection]  [width=fit,distance=\spaceamount

[NTG-context] Adjustment in the table of contents

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection. \setuplist [chapter,section,subsection] [width=fit,distance=\spaceamount] \setuplist [chapter] [alternative=b] \setuplist [chapter][style=bold

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Hans Hagen
This is the right test: \setuphead[part][placehead=yes] \setupnotations [endnote] [way=bypart] \setupnotes [endnote] [location=list] \starttext \part{First Part} asdf\endnote{asdf} jklö\endnote{jklö} \part{Second Part} asdf\endnote{asdf} jklö\endnote{jklö} \page \setuplist

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Hans Hagen
On 6/30/2021 4:57 PM, denis.ma...@unibe.ch wrote: Cool. Thanks. So again something to be wikified. Two questions related to this relying on the list mechanism: 1. You use this to flush the notes \setuplist    [part]    [after={\blank[samepage,big]\placelist[endnote][criterium=part

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread denis.maier
Would be great if that missing piece could be > added! > it's in the latest Cool. Thanks. So again something to be wikified. Two questions related to this relying on the list mechanism: 1. You use this to flush the notes \setuplist [part] [after={\blank[samepage,big]\placel

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-29 Thread Hans Hagen
][placehead=yes] \setupnotes [endnote] [way=bypart] \setupnotes [endnote] [location=list] \starttext \part{First Part} asdf\endnote{asdf} jklö\endnote{jklö} \part{Second Part} asdf\endnote{asdf} jklö\endnote{jklö} \page \setuplist [part] [after={\blank[samepage,big]\placelist[endnote

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread jbf
\structurelistuservariable{author} \rightaligned \bgroup #3 \egroup \egroup } \setuplist [chapter] [alternative=command, command=\SectionToCEntry, after=\endgraf] \completecontent \startchapter [title={This is my chapter title}] [author={Dummy Name}] \input Tufte

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread Bruce Horrocks
ext \define[3]\SectionToCEntry{ #2\crlf \leftaligned \bgroup \hskip 0.5cm \structurelistuservariable{author} \rightaligned \bgroup #3 \egroup \egroup } \setuplist [chapter] [alternative=command, command=\SectionToCEntry, after=\endgraf] \completecontent \startchapter

Re: [NTG-context] style option not working for headings

2021-02-12 Thread Pablo Rodriguez
On 2/13/21 12:13 AM, Pablo Rodriguez wrote: > Dear Hans, > > I’m afraid that style doesn’t work for headings in current latest > (2021.02.12 18:49): Hans, it might be that the style option doesn’t work in other commands (or at all): \setuphead[section][style=\it] \setuplist[se

[NTG-context] Table of Content

2021-02-11 Thread Ursula Hermann
: \setuphead[subject] [incrementnumber=list] %"width": distance between number and text in the ToC entry, "margin" : indent of ToC entry relative to left page margin \setuplist[section][width=1.5em] \setuplist[subsection][width=2.5em, margin=1.5em] \setuplist[subject]

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
}} {     \startalignment[middle]     \darkblue \tx \structurelistuservariable{author}     \stopalignment     } \stopsetups \setuplist[chapter][after=\setups{MySectionTocEntry}] Julian On 9/2/21 9:02 pm, mf wrote: Il 09/02/21 10:49, jbf ha scritto: I wonder if someone can assist me with the final

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread Hans Hagen
Anyway, here is an alternative: \startsetups[MySectionTocEntry] \doifsomething{\structurelistuservariable{author}} { \startalignment[middle] \darkblue \tx \structurelistuservariable{author} \stopalignment } \stopsetups \setuplist[chapter][after=\setups

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } try \startalignment[middle] ... \stopalignment instead of \midaligned My problem is that at the moment, the four

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
two below(also centred). Here is my MWE for the essential bit (which is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread mf
for the essential bit (which is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } try \startalignment[middle

[NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } My problem is that at the moment, the four authors appear on a single line

[NTG-context] expansion of xml userdata

2021-01-17 Thread Jano Kula
attached. Thank you, Jano \startbuffer[doc] text text \stopbuffer \setuphead[section][expansion=yes] \setuplist[section][alternative=command, command=\SectionListCommand] \define[3]\SectionListCommand{% {\bf#1\par title: #2\par u

[NTG-context] space between chapter and chapter number (in words)

2020-10-14 Thread jbf
  ,    ] \setuplist   [chapter]   [label=yes,    alternative=command,    command=\ChapterListCommand] Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] correct vertical alignment in ToC

2020-09-29 Thread jbf
also have (e.g. for the Preface, but I have others for Foreword, etc.): \setuplist   [preface]   [label=preface,    alternative=command,    command=\ChapterListCommand] (2) SECTIONTOCENTRY  \definehspace[twoem][2.5 em]    \define[1]\SectionTocEntry{%   #1\hspace[twoem]% title

Re: [NTG-context] How to shift unnumbered ToC entry?

2020-09-23 Thread Wolfgang Schuster
Lukas/ConTeXt schrieb am 23.09.2020 um 10:33: Hello, how do I shift unnumbered ToC entry (here: \subsubsection)? My attempt: \setuphead[subsubsection][number=no] \setuplist[subsubsection][distance=20mm,width=20mm] \setuplist [subsubsection] [margin=5em] Wolfgang

Re: [NTG-context] How to shift unnumbered ToC entry?

2020-09-23 Thread Lukas/ConTeXt
unnumbered ToC entry? Hello Lukas, you can try this: \setuphead[subsubsection][number=no] \setuplist[subsubsection][distance=20mm,width=20mm,textcommand=\mycmd] \def\mycmd#1{\hskip20mm#1} \starttext \placecontent \page \section{S} \subsection{Ss} \subsubsection{Sss} \stoptext

Re: [NTG-context] How to shift unnumbered ToC entry?

2020-09-23 Thread Tomas Hala
Hello Lukas, you can try this: \setuphead[subsubsection][number=no] \setuplist[subsubsection][distance=20mm,width=20mm,textcommand=\mycmd] \def\mycmd#1{\hskip20mm#1} \starttext \placecontent \page \section{S} \subsection{Ss} \subsubsection{Sss} \stoptext Best wishes, Tomáš

[NTG-context] How to shift unnumbered ToC entry?

2020-09-23 Thread Lukas/ConTeXt
Hello, how do I shift unnumbered ToC entry (here: \subsubsection)? My attempt: \setuphead[subsubsection][number=no] \setuplist[subsubsection][distance=20mm,width=20mm] \starttext \placecontent \page \section{S} \subsection{Ss} \subsubsection{Sss} \stoptext I'm getting

[NTG-context] Fwd: Re: styling individual parts of ToC entry

2020-09-09 Thread jbf
the following, using an idea Hraban had floated:  \setupsectionblock  [bodypart]  [number=no] \define[1]\SectionTocEntry{%   #1\crlf% title   \structurelistuservariable{author}% } \setuplist[section][   textcommand=\SectionTocEntry, ] I need to adjust the \setuplist[section] so these section entries

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
   A. u. thor  3 We obviously should not be getting [foreword: --2] in our result, nor a doubling up of Chapter 1 2. Where do I stand now with the earlier definition  (I mean the \define[3]\ChapterListCommand. Is that still used? Including its \setuplist part? What you

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread Wolfgang Schuster
to avoid that, but it failed. My MWE addition to what Wolfgang provided is: \definehead [foreword] [chapter] \setuphead [foreword] \setuplist [foreword]  [label=foreword,  alternative=command,  command=\ChapterListCommand]% definition not included here. It was given in an earlier response

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
addition to what Wolfgang provided is: \definehead [foreword] [chapter] \setuphead [foreword] \setuplist [foreword]  [label=foreword,  alternative=command,  command=\ChapterListCommand]% definition not included here. It was given in an earlier response from Wolfgang

[NTG-context] Fwd: Re: styling individual parts of ToC entry

2020-09-07 Thread jbf
assumed that having defined foreword, preface and mysection, they would need to be in a \setupcombinedlist. (4) And finally, I thought I would then need a \setuplist and \setuplabeltext for Foreword (as indeed I might for the other two as well, but to start with, I wanted to get one of them working

Re: [NTG-context] styling individual parts of ToC entry

2020-09-07 Thread Wolfgang Schuster
an author). So I tried creating a TitleListCommand which copies the ChapterListCommand. But where I run into difficulties then is with a new lot of \setuplist to accommodate that. There are three different labels involved (Foreword, Preface, and A note on Contributors). And why is it that even

Re: [NTG-context] styling individual parts of ToC entry

2020-09-06 Thread jbf
a TitleListCommand which copies the ChapterListCommand. But where I run into difficulties then is with a new lot of \setuplist to accommodate that. There are three different labels involved (Foreword, Preface, and A note on Contributors). And why is it that even with the current setup, 'Foreword' has

Re: [NTG-context] styling individual parts of ToC entry

2020-09-05 Thread jbf
    \structurelistuservariable{author}%    } \setuplist[title][textstyle=bold,    textcommand=\TitleTocEntry, ] %--- /Question 1:/ /How to get the two author names to line up vertically./ Given that I have both a Foreword and a Preface, I am using \title for these. And both have separate authors. The titles

Re: [NTG-context] styling individual parts of ToC entry

2020-09-05 Thread Wolfgang Schuster
: % \define[1]\TitleTocEntry{%   #1\hskip 1cm% title    \structurelistuservariable{author}%   } \setuplist[title][textstyle=bold,   textcommand=\TitleTocEntry, ] %--- /Question 1:/ /How to get the two author names to line up vertically./ Given that I have both

  1   2   3   4   5   6   7   8   9   >